﻿<%@ Page Language="C#" MasterPageFile="~/BluePortalMaster.Master" AutoEventWireup="true" CodeBehind="PlaylistForm.aspx.cs" Inherits="BluePortal.QuikStart.PlaylistForm" Title="Playlists" %>

<%@ Register Src="UserControls/VideoList.ascx" TagName="VideoList" TagPrefix="uc1" %>
<%@ Register src="UserControls/MediaChannels.ascx" tagname="MediaChannels" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="DefaultContent" runat="server">
    <table>
        <tr>
            <td>
                <asp:Panel ID="Panel1" runat="server" CssClass="drawer" Style="min-height: 150px">
                    <h1>
                        Favorites</h1>
                    <div class="drawer-content">
                        <uc1:VideoList ID="VideoList1" runat="server" ModeStr="RemoveFav" />
                    </div>
                </asp:Panel>
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td>
                <asp:Panel ID="Panel2" runat="server" CssClass="drawer" Style="min-height: 150px">
                    <h1>
                        PlayList</h1>
                    <div class="drawer-content">
                        <asp:ObjectDataSource   ID="odsPlaylist" runat="server" 
                                                SelectMethod="FindByUserWithMedia"
                                                TypeName="BluePortal.Medias.Core.BCPlaylist">
                            <SelectParameters>
                                <asp:Parameter Name="loginName" Type="String" />
                                <asp:parameter Name="findParameters" Type="Object" />
                            </SelectParameters>
                        </asp:ObjectDataSource>
                        
                        <asp:Repeater ID="Repeater2" runat="server" DataSourceID="odsPlaylist">
                            <HeaderTemplate>
                                <table>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <h3>
                                            <%# Eval("PlaylistName")%></h3>
                                        <uc1:VideoList ID="VideoList2" runat="server" VideosList='<%# Eval("Videos") %>'
                                            PlaylistId='<%# Eval("PLID") %>' ModeStr="RemovePlaylist" />
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>
                    </div>
                </asp:Panel>
            </td>
        </tr>
    </table>
    <div class="drawer">
        <h1>Channels Member</h1>
        <div class="drawer-content">
            <uc2:MediaChannels ID="VideoChannels1" runat="server" />
        </div>
    </div>
    
</asp:Content>
